const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const tagsSchema = new Schema({
    name: { type: String, required: true }, // 标签名称
    description: { type: String, default: '暂无描述' }, // 标签描述
    createTime: { type: Number, default: Date.now }, // 创建时间，默认为当前时间
    disabled: { type: Boolean, default: false },// 是否禁用，默认为false
    type: { type: String, require: true }, // 标签类型，默认为'good'
    color: { type: String }
});
const Tags = mongoose.model('tags', tagsSchema);
module.exports = Tags;
